
<?php
session_start();
$userloged=isset($_SESSION["uid"]);
if(!$userloged){
    echo "<script>alert('无权访问！');"
                    . "location='login.php';</script>";
}
?>
